<?php
/**
 * Created by PhpStorm.
 * User: guokunsheng
 * Date: 2024/5/20
 * Time: 下午3:06
 */

namespace app\web\controller;

use think\Controller;
use think\Env;

/**
 * Class Feedback
 * @package app\zyhsweb\controller
 */
class Feedback extends Controller
{
    public function index()
    {
        // 请求头
        $headers = [
            'app-type' => $this->request->header('app-type'),
            'version' => $this->request->header('version'),
            'did' => $this->request->header('did'),
            'time' => $this->request->header('time'),
            'sign' => $this->request->header('sign'),
            'model' => $this->request->header('model'),
            'phone-version' => $this->request->header('phone-version'),
            'timezone' => $this->request->header('timezone', 8),
            'access-token' => $this->request->header('access-token'),
        ];

        $h = input('h/d', 0); // 状态栏高度

        $host = Env::get('host.domain');
        $oss = Env::get('host.photo');

        $data = [];

        return $this->fetch('', [
            'header' => json_encode($headers),
            'h' => $h,
            'oss' => $oss,
        ]);
    }
}
